import request from '@/utils/request'
// 查询校区表列表
export function listCampusApi(query) {
  return request({
    url: '/edutation/campus/list',
    method: 'get',
    params: {
      orderByColumn:'campusId',
      isAsc:'descending',
      ...query
    }
  })
}
// 查询校区表详细
export function getCampusApi(campusId) {
  return request({
    url: '/edutation/campus/' + campusId,
    method: 'get'
  })
}

// 新增校区表
export function addCampusApi(data) {
  return request({
    url: '/edutation/campus',
    method: 'post',
    data: data
  })
}

// 修改校区表
export function updateCampusApi(data) {
  return request({
    url: '/edutation/campus',
    method: 'put',
    data: data
  })
}

// 删除校区表
export function delCampusApi(campusId) {
  return request({
    url: '/edutation/campus/' + campusId,
    method: 'delete'
  })
}
